package com.anos.smsfun.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;

import com.anos.smsfun.R;

public class ScheduleActivity extends Activity implements View.OnClickListener {

    private Button btnAddContact;
    private EditText edInputContact;
    private Button btnSetTime;
    private Button btnRepeat;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().requestFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_schedule);

        // findviewid
        findViewByIdAll();
    }

    private void findViewByIdAll() {
        btnAddContact = (Button) findViewById(R.id.btnAddContact_schedule);
        btnRepeat = (Button) findViewById(R.id.btnRepeat);
        btnSetTime = (Button) findViewById(R.id.btnSettime);
        edInputContact = (EditText)findViewById(R.id.edInputContact_schedule);

        btnAddContact.setOnClickListener(this);
        btnRepeat.setOnClickListener(this);
        btnSetTime.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.btnAddContact_schedule:
                Intent intent = new Intent(ScheduleActivity.this, SelectContactActivity.class);
                startActivity(intent);
                break;
        }
    }
}
